package com.xuecheng.manage_cms.dao;

import com.xuecheng.framework.domain.cms.CmsSite;
import com.xuecheng.framework.domain.cms.CmsTemplate;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @author zhaoxiang
 * @version 1.0
 * @Date 2019/9/22 22:42
 */
public interface CmsTemplateRepository extends MongoRepository<CmsTemplate,String> {
    /**
     * 模板新增页面
     * @param templateName
     * @param siteId
     * @param templateFileId
     * @return
     */
    CmsTemplate findByTemplateNameAndSiteIdAndTemplateFileId(String templateName, String siteId, String templateFileId);
}
